package com.yzt.zhuju.arouter;

import androidx.fragment.app.Fragment;

import com.alibaba.android.arouter.launcher.ARouter;

/**
 * author : bob
 * date   : 2022/11/30
 * desc   :
 */
public class RouterSayu {

    public static final String FRAGMENT_INDEX_MAIN = "/index/IndexFragment";

    public static final String ACTIVITY_INDEX_SEARCH = "/index/SearchUserActivity";

    /**
     * 首页
     */
    public static Fragment indexFragment() {
        return (Fragment) ARouter.getInstance().build(FRAGMENT_INDEX_MAIN).navigation();
    }

    /**
     * 搜索
     */
    public static void SearchUserActivity() {
        ARouter.getInstance().build(ACTIVITY_INDEX_SEARCH).navigation();
    }
}
